home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / utils / maxidi22.lzh / TOS / URAN_SYS.S < prev    next >
Encoding:
Text File  |  1992-02-09  |  5.9 KB  |  299 lines

  1. ; File name:    URAn_SYS.S    Revised:  1991.05.07
  2. ; Creator:    U.R.Andersson    Created:  1991.02.03
  3. ; (c)1991 by:    U.R.Andersson    All rights reserved
  4. ; Released as:    FREEWARE    (NB: commercial sales forbidden!)
  5. ;
  6. ;
  7. ;    Ascii constants
  8. ;
  9. NUL    equ    $00
  10. BEL    equ    $07
  11. BS    equ    $08
  12. HT    equ    $09
  13. LF    equ    $0A
  14. VT    equ    $0B
  15. FF    equ    $0C
  16. CR    equ    $0D
  17. ESC    equ    $1B
  18. ;
  19. ;
  20. ;    Diverse constants
  21. ;
  22. maxsbyte    equ    $7F
  23. maxubyte    equ    $FF
  24. maxsword    equ    $7FFF
  25. maxuword    equ    $FFFF
  26. maxslong    equ    $7FFFFFFF
  27. maxulong    equ    $FFFFFFFF
  28. ;
  29. ;
  30. ;    System init vectors
  31. ;
  32. ssp_init    equ    $000
  33. ev_reset    equ    $004
  34. ;
  35. ;
  36. ;    System exception vectors
  37. ;
  38. ev_buserr    equ    $008
  39. ev_adrerr    equ    $00C
  40. ev_illegal    equ    $010
  41. ev_divby0    equ    $014
  42. ev_chk_ofl    equ    $018
  43. ev_trapv    equ    $01C
  44. ev_priverr    equ    $020
  45. ev_trace    equ    $024
  46. ev_a_line    equ    $028
  47. ev_f_line    equ    $02C
  48. ;
  49. ; vectors at $030..$03B are unassigned
  50. ; vector at $3C is dubiously specified, but can not be considered free
  51. ; vectors at $040..$05F are unassigned
  52. ;
  53. ev_spurerr    equ    $060
  54. ev_level1    equ    $064
  55. ev_level2    equ    $068
  56. ev_level3    equ    $06C
  57. ev_level4    equ    $070
  58. ev_level5    equ    $074
  59. ev_level6    equ    $078
  60. ev_level7    equ    $07C
  61. ; the odd vectors above are unavailable since IPL0 is tied high
  62. ev_HBI        equ    ev_level2
  63. ev_VBI        equ    ev_level4
  64. ev_MFP        equ    ev_level6
  65. ;
  66. ev_trap0    equ    $080
  67. ev_trap1    equ    $084
  68. ev_trap2    equ    $088
  69. ev_trap3    equ    $08C
  70. ev_trap4    equ    $090
  71. ev_trap5    equ    $094
  72. ev_trap6    equ    $098
  73. ev_trap7    equ    $09C
  74. ev_trap8    equ    $0A0
  75. ev_trap9    equ    $0A4
  76. ev_trap10    equ    $0A8
  77. ev_trap11    equ    $0AC
  78. ev_trap12    equ    $0B0
  79. ev_trap13    equ    $0B4
  80. ev_trap14    equ    $0B8
  81. ev_trap15    equ    $0BC
  82. ;
  83. ev_gemdos    equ    ev_trap1
  84. ev_xgemdos    equ    ev_trap2
  85. ev_bios        equ    ev_trap13
  86. ev_xbios    equ    ev_trap14
  87. ;
  88. ; vectors at $0C0..$0FF are unassigned
  89. ;
  90. ;     interrupt vectors for MFP interrupts
  91. ;
  92. iv_cenbusy    equ    $100
  93. iv_v24dcd    equ    $104
  94. iv_v24cts    equ    $108
  95. iv_blitter    equ    $10C
  96. iv_time_d    equ    $110
  97. iv_time_c    equ    $114
  98. iv_kb_midi    equ    $118
  99. iv_disk        equ    $11C
  100. iv_time_b    equ    $120
  101. iv_v24terr    equ    $124
  102. iv_v24treq    equ    $128
  103. iv_v24rerr    equ    $12C
  104. iv_v24rreq    equ    $130
  105. iv_time_a    equ    $134
  106. iv_v24ring    equ    $138
  107. iv_monodet    equ    $13C
  108. ;
  109. ; vectors at $140..$1FF are unassigned
  110. ; vectors at $200..$37F are reserved for OEM products
  111. ;
  112. ;     System bomb info for debug analysis
  113. ;
  114. bombflag    equ    $380
  115. bomb_d0        equ    $384
  116. bomb_d1        equ    $388
  117. bomb_d2        equ    $38C
  118. bomb_d3        equ    $390
  119. bomb_d4        equ    $394
  120. bomb_d5        equ    $398
  121. bomb_d6        equ    $39C
  122. bomb_d7        equ    $3A0
  123. bomb_a0        equ    $3A4
  124. bomb_a1        equ    $3A8
  125. bomb_a2        equ    $3AC
  126. bomb_a3        equ    $3B0
  127. bomb_a4        equ    $3B4
  128. bomb_a5        equ    $3B8
  129. bomb_a6        equ    $3BC
  130. bomb_a7        equ    $3C0
  131. bombvector    equ    $3C4
  132. bomb_usp    equ    $3C8
  133. bomb_ssp    equ    bomb_a7
  134. bombstack    equ    $3CC
  135. ;
  136. ; vector area at $3EC..$3FF is unassigned, but known to be used by
  137. ; some system support programs for non_vector purposes (eg. timesave)
  138. ;
  139. ;
  140. ;     System variables
  141. ;
  142. etv_timer    equ    $400
  143. etv_critic    equ    $404
  144. etv_term    equ    $408
  145. etv_extra    equ    $40C
  146. memvalid    equ    $420
  147. memctrl        equ    $424
  148. resvalid    equ    $426
  149. resvector    equ    $42A
  150. phystop        equ    $42E
  151. _membot        equ    $432
  152. _memtop        equ    $436
  153. memval2        equ    $43A
  154. flock        equ    $43E
  155. seekrate    equ    $440
  156. _timr_ms    equ    $442
  157. _fverify    equ    $444
  158. _bootdev    equ    $446
  159. _palmode    equ    $448
  160. defshiftmd    equ    $44A
  161. sshiftmd    equ    $44C
  162. _v_bas_ad    equ    $44E
  163. vblsem        equ    $452
  164. nvbls        equ    $454
  165. _vblqueue    equ    $456
  166. colorptr    equ    $45A
  167. screenpt    equ    $45E
  168. _vbclock    equ    $462
  169. _frclock    equ    $466
  170. hdv_init    equ    $46A
  171. swv_vec        equ    $46E
  172. hdv_bpb        equ    $472
  173. hdv_rw        equ    $476
  174. hdv_boot    equ    $480
  175. hdv_mediach    equ    $47E
  176. _cmdload    equ    $482
  177. conterm        equ    $484
  178. trp14ret    equ    $486
  179. criticret    equ    $48A
  180. themd        equ    $48E
  181. _md        equ    $49E
  182. savptr        equ    $4A2
  183. _nflops        equ    $4A6
  184. constate    equ    $4A8
  185. save_row    equ    $4AC
  186. sav_contxt    equ    $4AE
  187. _bufl        equ    $4B2
  188. _hz_200        equ    $4BA
  189. the_env        equ    $4BE
  190. _drvbits    equ    $4C2
  191. _dskbufp    equ    $4C6
  192. _autopath    equ    $4CA
  193. _vbl_list    equ    $4CE
  194. _prt_cnt    equ    $4EE
  195. _prtabt        equ    $4F0
  196. _sysbase    equ    $4F2
  197. _shell_p    equ    $4F6
  198. end_os        equ    $4FA
  199. exec_os        equ    $4FE
  200. ;
  201. ;
  202. ;    OS header offsets
  203. ;
  204. os_codebra    = $00    ;w $60xx
  205. os_version    = $02    ;w $0v0r
  206. os_reset_p    = $04    ;L
  207. os_selfbeg_p    = $08    ;L
  208. os_varend_p    = $0c    ;L
  209. os_unknown_p    = $10    ;L
  210. os_gem_mpb_p    = $14    ;L
  211. os_date_bcd    = $18    ;L
  212. os_config    = $1c    ;w
  213. os_date_gem    = $1e    ;w
  214. ;    next follows the part valid only for TOS 1.4 & later
  215. os_pool_p    = $20
  216. os_kbshift_p    = $24
  217. os_currbp_p_p    = $28
  218. os_reserved    = $2c
  219. ;
  220. ;
  221. ;    Cartridge ROM definitions
  222. ;
  223. rom_diag_id    = $fa52255f
  224. rom_appl_id    = $abcdef42
  225. rom_base    = $fa0000
  226. rom_head    = $fa0004
  227. ;
  228. rh_diagcode    = 0
  229. rh_applnext_p    = 0
  230. rh_applinit_p    = 4
  231. rh_applcode_p    = 8
  232. rh_appltime    = 12
  233. rh_appldate    = 14
  234. rh_applsize    = 16
  235. rh_applname    = 20    ;<=13b incl terminal NUL
  236. ;
  237. ;
  238. ;     System hardware
  239. ;
  240. hw_mapper    equ    $ffff8001
  241. hw_vbase2    equ    $ffff8201
  242. hw_vbase1    equ    $ffff8203
  243. hw_vpos2    equ    $ffff8205
  244. hw_vpos1    equ    $ffff8207
  245. hw_vpos0    equ    $ffff8209
  246. hw_syn        equ    $ffff820A
  247. hw_vbase0    equ    $ffff820C     ;.w STE only
  248. hw_horext    equ    $ffff820E     ;.w STE only
  249. hw_pal        equ    $ffff8240
  250. ;
  251. hw_rez        equ    $ffff8260
  252. hw_pixoff    equ    $ffff8264     ;.w STE only
  253. hw_fdcreg    equ    $ffff8604
  254. hw_seccnt    equ    $ffff8604
  255. hw_fdcsel    equ    $ffff8606
  256. hw_dmasel    equ    $ffff8606
  257. hw_fdcdreq    equ    $ffff8606
  258. hw_dmastat    equ    $ffff8606
  259. hw_dma2        equ    $ffff8609
  260. hw_dma1        equ    $ffff860B
  261. hw_dma0        equ    $ffff860D
  262. ;
  263. hw_psgsel    equ    $ffff8800
  264. hw_psgrd    equ    $ffff8800
  265. hw_psgwr    equ    $ffff8802
  266. hw_gpip        equ    $ffffFA01
  267. hw_aer        equ    $ffffFA03
  268. hw_ddr        equ    $ffffFA05
  269. hw_iera        equ    $ffffFA07
  270. hw_ierb        equ    $ffffFA09
  271. hw_ipra        equ    $ffffFA0B
  272. hw_iprb        equ    $ffffFA0D
  273. hw_isra        equ    $ffffFA0F
  274. hw_isrb        equ    $ffffFA11
  275. hw_imra        equ    $ffffFA13
  276. hw_imrb        equ    $ffffFA15
  277. hw_vr        equ    $ffffFA17
  278. hw_tacr        equ    $ffffFA19
  279. hw_tbcr        equ    $ffffFA1B
  280. hw_tcdcr    equ    $ffffFA1D
  281. hw_tadr        equ    $ffffFA1F
  282. hw_tbdr        equ    $ffffFA21
  283. hw_tcdr        equ    $ffffFA23
  284. hw_tddr        equ    $ffffFA25
  285. hw_scr        equ    $ffffFA27
  286. hw_ucr        equ    $ffffFA29
  287. hw_rsr        equ    $ffffFA2B
  288. hw_tsr        equ    $ffffFA2D
  289. hw_udr        equ    $ffffFA2F
  290. hw_kbstat    equ    $ffffFC00
  291. hw_kbcont    equ    $ffffFC00
  292. hw_kbdata    equ    $ffffFC02
  293. hw_midistat    equ    $ffffFC04
  294. hw_midicont    equ    $ffffFC04
  295. hw_mididata    equ    $ffffFC06
  296. ;
  297. ;
  298. ; End of file:    URAn_SYS.S
  299.